home *** CD-ROM | disk | FTP | other *** search
-
- THandler Version 1.01
- (C) Copyright 1992, 1993 Michael Newton and Comsoft Software
- All rights reserved.
-
- The THandler C++ library was created with Borland C++ version 3.1 and
- Borland's Turbo Vision version 1.01.
-
- Michael Newton
- Comsoft Software
- 32939 Watson Rd.
- Scappoose OR 97056 USA
-
- Voice (503) 543-3720
- Voice (206) 481-7840
- CompuServe 70402,531
- Internet 70402.531@compuserve.com
- --------------------------------------------------------------------------------
-
- File list
-
- Filename Description
- --------------------------------------------------------------------------------
- THANDLER.LIB Large model C++ library file
- THANDLER.HPP Header file for the THandler class
- THANDLER.DOC This file
- TDEMO.CPP C++ source file for the THandler demo program
- ORDER.DOC Order form
-
- --------------------------------------------------------------------------------
- What is it?
- -----------
-
- THandler is an interrupt 24H (Hardware error) handler for your Turbo Vision
- applications. It replaces Turbo Vision's own TSystemError class.
-
-
-
- Page 1
-
- THandler Version 1.01
- --------------------------------------------------------------------------------
- How do I use it?
- ----------------
-
- THandler class summary THANDLER.HPP
-
- THandler
-
- See the source code in tdemo.cpp for a demonstration of using THandler.
- Basically, all that's needed is to create an instance of THandler in your
- application prior to any code which might need the handler. The constructor
- installs the interrupt service routine. When the handler is no longer needed
- it should be destroyed.
-
- NOTE:
- THandler uses the interrupt keyword, therefor the Stack warning checkbox
- should be unchecked (off) and the Register Variables option should be set to
- None. You cannot compile a program that uses THandler with Test Stack Overflow
- turned on and get an executable file that operates correctly.
-
- THandler replaces Turbo Vision's TSystemError class. It provides system error
- handlers and associated services.
-
- Most of its members are private and will not be of direct interest in normal
- Turbo Vision applications.
-
- Constructor and Destructor:
- ---------------------------
-
- THandler(Boolean isSound = True);
-
- Creates a THandler object and installs the system error handler. Suspends
- TSystemError by calling TSystemError::suspend().
- The optional 'isSound' parameter controlls Thandler's use of sound. A value
- of 'True', or (1)' turns sound on, while a value of 'False', or (0), turns
- sound off. The default is True.
-
- ~THandler();
- Removes the system error handler and re-installs TSystemError by calling
- TSystemError::resume().
-
-
- Member Functions:
- -----------------
-
- void resume();
-
- Suspends TSystemError by calling TSystemError::suspend and re-installs
- THandler's system error handler.
-
-
- void suspend();
-
- Removes THandler's system error handler and re-installs TSystemError's error
- handler by calling TSystemError::resume().
-
- Page 2
-
- THandler Version 1.01
- --------------------------------------------------------------------------------
-
- Member Functions: (cont.)
- -----------------
-
- void setSound(Boolean isSound);
-
- Sets THandler's use of sound by assigning the value of 'isSound' to the
- static variable 'sounds'. If value of 'isSound' is 'True', Thandler will sound a
- tone when an error occurs. A value of 'False' turns sound off.
-
-
- Boolean getSound();
-
- Returns the current value of THandler's 'sounds' variable.
-
- --------------------------------------------------------------------------------
- TDemo
- -----
-
- To compile TDEMO.EXE from the BC++ IDE, create a project file which includes
- THANDLER.LIB AND TDEMO.CPP, hit "build all" or "run", and viola!
- TDEMO.EXE demonstrates THandler by allowing the user to select various system
- devices to access. When the demo program attempts to access a device that is not
- ready, such as a floppy drive with no disk in the drive, interrupt 24H is
- generated and program flow is directed to THandler's newInt24 function. This
- function executes an error dialog box which shows the user which device caused
- the error, and what type of error occured. The error dialog box has buttons for
- Abort, Retry, Ignore, and Fail. Depending on the type of error, some of these
- buttons may be disabled.
-
- --------------------------------------------------------------------------------
- Shareware message
- -----------------
-
- THandler is distributed as "shareware" in C++ library form. Try it, use it,
- and pass it on to your friends (in the original, unaltered distribution
- archive). THandler is NOT public domain or free software. If you use it you must
- pay for it. Registration is required if you use this library, or source code, at
- work (i.e. in a business or institutional setting).
-
- Our livelihood depends on the honesty and integrity of THandler users. Your
- registration will help pay the programmer for his hard work, and encourage
- continued support and development of THandler and other quality programming
- utilities. In addition, you will be showing others that you support the
- shareware concept.
-
- Page 3
-
- THandler Version 1.01
- --------------------------------------------------------------------------------
-
- Pricing
- -------
-
- Single copies of the THandler library are $20 US plus $3 shipping and
- handling. If you would like THandler on a 3.5" disk, add $2.
-
- Fully commented C++ source code for THandler is also available for $45 US
- plus $3 shipping and handling. If you would like the source code on a 3.5" disk,
- add $2.
-
- Orders from outside the USA are $3 extra.
-
- --------------------------------------------------------------------------------
- Ordering
- --------
-
- To order, print the file "ORDER.DOC", fill it out and mail it, along with
- your check or money order, to the address below.
-
- You may also write the following information on a piece of paper and mail it,
- along with your check or money order, to the address below.
-
- Your name
- Your address
- Your phone number (optional)
- The disk size you require. (5.25" or 3.5")
- The number of copies you wish to purchase.
- Please specify either THandler library or THandler library with source.
-
- Please send payment, in the form of a check or money order, to...
-
- Michael Newton
- 32939 Watson Rd.
- Scappoose OR 97056 USA
-
- --------------------------------------------------------------------------------
- Disclaimer!
- -----------
-
- You use this library, and/or source, code (just like any other) at your own
- risk, so be careful. Read the documentation, follow instructions, and make
- backups. We can't guarantee that this code will work with every possible
- combination of hardware and software out there in the real world (or that it
- will work at all, for that matter). While we have done our best to produce
- well-written, bug-free code, oversights and omissions can happen.
-
- Page 4
-
- THandler Version 1.01
- --------------------------------------------------------------------------------
-
- Disclaimer! (cont.)
- -----------
-
- No software is completely safe from bugs, glitches, and "stupid user tricks".
- We cannot be responsible for any damages which might occur as a result of using
- THandler. We cannot guarantee it will be "safe" or "harmless" in all possible
- applications, and any lost time, data, hardware, or software you incur as a
- result of using THandler is your responsibility alone. If this disclaimer isn't
- good enough for you, don't use THandler.
-
- --------------------------------------------------------------------------------
- Acknowledgements
- ----------------
-
- We mention other people's products in this document, and would like to give
- credit where credit is due.
-
- - Turbo Vision is a trademark of Borland International.
- - Borland C++ is a trademark of Borland International.
- - MS-DOS is a trademark of Microsoft Corporation.
-
- --------------------------------------------------------------------------------
- Contacting the Authors
- ----------------------
-
- Michael 'Mick' Newton is responsible for the development of THandler as well
- as this fine documentation.
- We always like to hear from our users, whether you've already registered
- THandler or are still evaluating it. For urgent technical support, or to give
- the programmer a piece of your mind, call us at...
-
- Voice (503) 543-3720 Oregon
- Voice (206) 481-7840 Washington
-
- or send email to...
-
- CompuServe 70402,531
- Internet 70402.531@compuserve.com
- --------------------------------------------------------------------------------
- Revision history
- ----------------
-
- 05-21-92 First release.
-
- 06-02-92 Fixed bug where selecting 'Abort' from the error handler dialog
- box would cause a system lock-up.
-
- 06-27-92 Recompiled with Borland BC++ 3.1 and updated Turbo Vision.
- Fixed 'superflous & with function' warnings.
-
- Page 5
-
-
- ----------------end-of-author's-documentation---------------
-
- Software Library Information:
-
- This disk copy provided as a service of
-
- Public (software) Library
-
- We are not the authors of this program, nor are we associated
- with the author in any way other than as a distributor of the
- program in accordance with the author's terms of distribution.
-
- Please direct shareware payments and specific questions about
- this program to the author of the program, whose name appears
- elsewhere in this documentation. If you have trouble getting
- in touch with the author, we will do whatever we can to help
- you with your questions. All programs have been tested and do
- run. To report problems, please use the form that is in the
- file PROBLEM.DOC on many of our disks or in other written for-
- mat with screen printouts, if possible. PsL cannot debug pro-
- programs over the telephone, though we can answer questions.
-
- Disks in the PsL are updated monthly, so if you did not get
- this disk directly from the PsL, you should be aware that the
- files in this set may no longer be the current versions. Also,
- if you got this disk from another vendor and are having prob-
- lems, be aware that some files may have become corrupted or
- lost by that vendor. Get a current, working disk from PsL.
-
- For a copy of the latest monthly software library newsletter
- and a list of the 4,000+ disks in the library, call or write
-
- Public (software) Library
- P.O.Box 35705 - F
- Houston, TX 77235-5705
-
- 1-800-2424-PSL
- MC/Visa/AmEx/Discover
-
- Outside of U.S. or in Texas
- or for general information,
- Call 1-713-524-6394
-
-